<script setup>
import { useRouter } from "vue-router";

const router = useRouter()
</script>

<template>
  <div class="return-btn">
    <el-button type="error" @click="router.push({path: '/index'})">出错了，点我返回首页</el-button>
  </div>
</template>

<style scoped>
.return-btn {
  margin-top: 20%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
</style>